﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.RangeAttribute
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine
{
  /// <summary>
  ///   <para>Attribute used to make a float or int variable in a script be restricted to a specific range.</para>
  /// </summary>
  [AttributeUsage(AttributeTargets.Field, Inherited = true, AllowMultiple = false)]
  public sealed class RangeAttribute : PropertyAttribute
  {
    public readonly float min;
    public readonly float max;

    /// <summary>
    ///   <para>Attribute used to make a float or int variable in a script be restricted to a specific range.</para>
    /// </summary>
    /// <param name="min">The minimum allowed value.</param>
    /// <param name="max">The maximum allowed value.</param>
    public RangeAttribute(float min, float max)
    {
      this.min = min;
      this.max = max;
    }
  }
}
